package com.ericsson.eritask.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericsson.eritask.domain.User;
import com.ericsson.eritask.dao.ValidateUser;
import com.ericsson.eritask.service.LoginService;

@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	ValidateUser validateUser;
	

	@Override
	public List<User> authenticateUser(String userNane, String password) {
		// TODO Auto-generated method stub
		List<User> user_list = validateUser.getUserDtls(userNane, password);
		
		return user_list;
	}


	public void setValidateUser(ValidateUser validateUser) {
		this.validateUser = validateUser;
	}

}
